<?php
require_once ROOT_PATH.'mobiapi/response/base.resp.php';

class MobiResponse extends BaseResponse
{
	var $id;
	
	var $email;
	var $name;
	var $image;
	var $gender;
	
	var $desc;
	var $city;
	var $register_time;
	
	var $story_count;
	var $fans_count;
	var $follow_count;
	var $is_follow;
	
	function __construct($response)
	{
		parent::__construct($response);
		
		$this->id = isset($response['id']) ? $response['id'] : '';
		
		$this->email = isset($response['email']) ? $response['email'] : '';
		$this->name = isset($response['name']) ? $response['name'] : '';
		$this->image = isset($response['image']) ? $response['image'] : '';
		$this->gender = isset($response['gender']) ? $response['gender'] : '';
		
		$this->desc = isset($response['desc']) ? $response['desc'] : '';
		$this->city = isset($response['city']) ? $response['city'] : '';
		$this->register_time = isset($response['register_time']) ? format_time($response['register_time']) : '';
		
		$this->story_count = isset($response['story_count']) ? $response['story_count'] : '';
		$this->fans_count = isset($response['fans_count']) ? $response['fans_count'] : '';
		$this->follow_count = isset($response['follow_count']) ? $response['follow_count'] : '';
		$this->is_follow = isset($response['is_follow']) ? $response['is_follow'] : null;
	}
}